<%@ page import="cn.edu.xaut.bean.User" %><%--
  Created by IntelliJ IDEA.
  User: 愿黑星照常升起
  Date: 2023/11/5
  Time: 9:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>login success</title>
    <style>
        body{
            background-image: url("./static/img/try.jpg");
            background-repeat: no-repeat;
            background-size: 100%;
        }
        #main{
            width: 500px;
            height: 300px;
            margin: 0 auto;

            border-radius: 10px;
            margin-top: 100px;
            background: white;
            opacity:0.7;

        }
        #main div{
            text-align: center;
            font-size: 20px;
            margin-top: 20px;
        }
        ul{
            padding-top: 1px;
            padding-left: 1px;
            list-style: none;
        }

    </style>
    <link rel="stylesheet" href="./static/plugins/bootstrap-3.4.1-dist/css/bootstrap.css">
</head>
<body>
<jsp:include page="header.jsp"/>
<jsp:useBean id="user" class="cn.edu.xaut.bean.User" scope="session"></jsp:useBean>

<%
    User user1=(User)session.getAttribute("user");
    if(user1.getId()==0){
%>

<script>
    window.alert("请先登录");
    window.location.href ="login.jsp";
</script>



<%
    return;
    }
%>
<div id="main">
    <div id="welcome">您的信息</div>
    <hr />
    <div>你的信息</div>
    <div>
        <ul>
            <li>用户名：<jsp:getProperty name="user" property="username"></jsp:getProperty></li>
            <li>邮箱:  <jsp:getProperty name="user" property="email"></jsp:getProperty></li>
        </ul>
    </div>

</div>
<jsp:include page="footer.jsp"/>
<script src="./static/js/jquery-3.6.0.min.js"></script>
<script src="./static/plugins/bootstrap-3.4.1-dist/js/bootstrap.js"></script>
</body>
</html>
